﻿
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- saved from url=(0014)about:internet -->
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:mssdk="winsdk" xmlns:script="urn:script" xmlns:build="urn:build" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="Description" content="The VSSDump Tool"/>
<meta name="MSHAttr" content="PreferredSiteName:MSDN"/>
<meta name="MSHAttr" content="PreferredLib:/library/windows/hardware"/>
<title>The VSSDump Tool</title>

<meta name="MS-HAID" content="SymChk_f6adac45-9f38-4b69-9cc7-0e2e40bc67e2.xml"/>


<link rel="STYLESHEET" type="text/css" HREF="../common/backsdk4.css"/>





<style>
html,div { margin: 0; padding: 0;}

body {
	padding: 0px;
	margin: 0px;
	overflow: auto;
	height: 100%;
}

#winchm_template_button{
	float: right;
	width: 93px;
	top: 7px;
	position: relative;
	text-align: right;
	right: 5px;
	height: auto;
}

#winchm_template_top{
	padding: 0px;
	margin: 0px;
	border-bottom: 1px solid #9B9B9B;
	background-color: #B1CEFE;
}

#winchm_template_navigation{
	margin: 0px;
	padding-top: 7px;
	padding-left: 7px;
	padding-bottom: 3px;
	padding-right: 0px;
	font-size: 8.5pt;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: normal;
	color: #585858;
}

#winchm_template_title{
	margin: 0px;
	padding-top: 4px;
	padding-left: 7px;
	padding-bottom: 7px;
	padding-right: 0px;
	font-size: 18px; 
	font-family: Verdana, Geneva, sans-serif;
	color: #363636;
}

#winchm_template_content{
	margin-top: 20px;
	margin-left: 15px;
	margin-bottom: 20px;
	margin-right: 15px;
	width: auto  !important;
	width: 100%;
}

#winchm_template_footer{
	border-width: 1px;
	border-color: #B1CEFE;
	border-top-style: solid;
	margin-top: 15px;
	margin-left: 15px;
	margin-bottom: 20px;
	margin-right: 15px;
	padding-top: 7px;
	padding-left: 0px;
	padding-bottom: 0px;
	padding-right: 0px;
	font-family: arial, helvetica, sans-serif;
	font-size: 8.5pt;
	color: #696969;
	width: auto;
	text-align: left;
}


#winchm_template_container{
	margin: 0px;
	padding: 0px;
	position: static;
	padding-bottom: 3px;
	overflow: auto;
	background-color: #FFFFFF;
}


@media print
{
#winchm_template_container{
	position: static;	
	margin: 0px;
	padding: 5px;
	
	width: auto;
	height: auto;
	overflow: auto;
}
#winchm_template_button{
visibility:hidden;
}
}

#winchm_template_navigation A:link	{text-decoration: none; color:#004080}
#winchm_template_navigation A:visited  {text-decoration: none; color: #004080}
#winchm_template_navigation A:active {text-decoration: none; color: #004080 }
#winchm_template_navigation A:hover {text-decoration: none;color: #0080FF}

A:link	{text-decoration: underline; color:#0033CC}
A:visited  {text-decoration: underline; color: #0033CC}
A:active {text-decoration: underline; color: #0033CC }
A:hover {text-decoration: underline;color: #FF0000;}
</style>
<script type="text/javascript">
function isMobile(){
Agent = window.navigator.userAgent;
if (Agent.indexOf("iPhone")>=1 || Agent.indexOf("iPad")>=1 || Agent.indexOf("iPod")>=1 || Agent.indexOf("Android")>=1){
return true;
}else{
return false;	
}

}
function d_onresize(){
if (window.navigator.userAgent.indexOf("MSIE")>=1){
document.getElementById('winchm_template_container').style.pixelWidth = document.body.offsetWidth - 3;
document.getElementById('winchm_template_container').style.pixelHeight = document.body.offsetHeight - document.getElementById('winchm_template_top').offsetHeight - 4;
}
document.getElementById('winchm_template_container').style.top = document.getElementById('winchm_template_top').offsetHeight + 'px';
}

function d_onbeforeprint(){
document.getElementById('winchm_template_container').style.width = 'auto';
document.getElementById('winchm_template_container').style.height = 'auto';
}

function d_onafterprint(){
d_onresize();
}

if(!isMobile()){

window.onload = d_onresize;
window.onresize = d_onresize;
window.onbeforeprint = d_onbeforeprint;
window.onafterprint = d_onafterprint;

document.write("<style>\n");
document.write("body {overflow: hidden;}\n");
document.write("#winchm_template_container {position: absolute;overflow: auto;top : 0px;right: 0px;bottom: 0px;left: 0px;}\n");
document.write("</style>\n");
}

</script>
</head>
<body><script language="JavaScript" type="text/JavaScript">
function syn(){
if(parent.nav.tree){
 if(parent.nav.tree.loaded){
  parent.nav.tree.selectNode(156);
 }else{
  setTimeout("syn()",500);
}
  }else{
  setTimeout("syn()",500);
  }}
if(parent!=self){
  setTimeout("syn()",100);
}else{
  parent.location.href = "../../index.htm?page=debugger/the_vssdump_tool.htm";
}
originalOnload = window.onload;
if(originalOnload==null){
window.onload = function(){parent.contentLoaded = true;};
}else{
window.onload = function(){originalOnload();parent.contentLoaded = true;};
}
</script> 


<div id="winchm_template_top">
	<div id="winchm_template_button"><A href="the_pdbstr_tool.htm" title="Previous topic"><img id="winchm_template_prev" alt="Previous topic" src="../template2/btn_prev_n.gif" border="0"></a><A href="source_control_systems.htm" title="Next topic"><img id="winchm_template_next" alt="Next topic" src="../template2/btn_next_n.gif" border="0"></a></div>
	<div id="winchm_template_navigation">Help &gt; 
<A href="introduction6.htm">Debugging Tools for Windows (WinDbg, KD, CDB, NTSD)</A> &gt; <A href="debugging_resources.htm">Debugging Resources</A> &gt; <A href="source_code.htm">Source Code</A> &gt; <A href="srcsrv.htm">SrcSrv</A> &gt; <A href="source_indexing.htm">Source Indexing</A> &gt; </div>
	<div id="winchm_template_title">The VSSDump Tool</div>
</div>
<div id="winchm_template_container">
	<div id="winchm_template_content"><div id="mainSection"><p>The VSSDump (Vssdump.exe) tool is used by the indexing script for Microsoft Visual SourceSafe.  It gathers the list of source files to be indexed.  This program is also a valuable command-line utility that you can use to examine which files may be processed by the indexing script.</p>
<p>To prepare for source indexing, edit Srcsrv.ini so that it contains an entry for your version control server.  This is an operation that you must do only once.  Details are listed in the sample version Srcsrv.ini.  You can use an environment variable or switch to the indexing script to denote the location of this file. However, it is best to put it in the same directory as the script because the contents of this file are intended to be global across all projects in your business or development system.  This file serves to uniquely identify different version control servers.  Note that you can provide a different version of this file to debuggers so that they look at a replicated copy of the version control server, which can be useful if you want to reduce traffic on the server.</p>
<p>To source-index a particular build, make certain that no source files are checked out on the build computer.  If any files are checked out and edited, those changes are not reflected in the final source indexed .pdb files.  Furthermore, if your build process includes a pre-compilation pass that generates source files from other files, you must check in those generated files to version control as part of the pre-compilation.</p>
<p>Upon completion of the build, set the current working directory to be the root of all source files and generated .pdb files.  Then run SSIndex.  You must specify what version control system you are using as a parameter.  For example:</p>
<p><b>ssindex.cmd -server=vss</b></p>
<p>SSIndex accepts parameters that allow you to run the script from anywhere and to specify the location of the source files and .pdb files separately.  This is most useful if the source is kept in another location from the output .pdb files.  For example:</p>
<p><b>ssindex.cmd -server=vss -source=c:\</b><i>source</i><b> -symbols=c:\</b><i>outputdir</i></p>
<p>These directories can also be specified with environment variables.  Use the -? or -?? command line options for more information.</p>
<p>Here is an example of the output generated by this script:</p>
<pre class="syntax" xml:space="preserve"><code>C:\ &gt;ssindex.cmd -system=vss -?
--------------------------------------------------------------------------------
SSIndex.cmd [/option=&lt;value&gt; [...]] [ModuleOptions] [/Debug]
General SrcSrv settings:
     NAME              SWITCH      ENV. VAR        Default
  -----------------------------------------------------------------------------
  1) srcsrv.ini        Ini         SRCSRV_INI      .\srcsrv.ini
  2) Source root       Source      SRCSRV_SOURCE   .
  3) Symbols root      Symbols     SRCSRV_SYMBOLS  .
  4) Control system    System      SRCSRV_SYSTEM   &lt;N/A&gt;
  5) Save File (opt.)  Save        SRCSRV_SAVE     &lt;N/A&gt;
  6) Load File (opt.)  Load        SRCSRV_LOAD     &lt;N/A&gt;
Visual Source Safe specific settings:
     NAME            SWITCH      ENV. VAR        Default
  -----------------------------------------------------------------------------
  A) VSS Server      Server      SSDIR            &lt;N/A&gt;
  B) VSS Client      Client      SSROOT           &lt;Current directory&gt;
  C) VSS Project     Project     SSPROJECT        &lt;N/A&gt;
  D) VSS Label       Label       SSLABEL          &lt;N/A&gt;
Precedence is: Default, environment, cmdline switch. (ie. env overrides default,
switch overrides env).
Using '/debug' will turn on verbose output.
Use "SSIndex.cmd -??" for verbose help information.
See SrcSrv documentation for more information.
--------------------------------------------------------------------------------</code></pre>
<p>You can also use one of the provided wrapper scripts (Vssindex.cmd) to avoid specifying the version control system.  The script source-indexes all .pdb files found in the current directory and below with version control information to locate all source files found in the current directory and below.  You can specify different locations for these files by using environment variables and command-line switches.</p>
<p>Upon completion of the source indexing, you can test the output by running SrcTool on the .pdb files.  This program displays data that indicates whether or not the .pdb file is source indexed.  It also displays the specific information for every source file.  Lastly, it displays the number of indexed sources and the number of sources that no indexing information was found for.  It sets an %ERRORLEVEL% of -1 if the file is not source-indexed.  Otherwise, it sets %ERRORLEVEL% to the number of indexed source files.</p>
<p>VSSDump can also be used independently to diagnose issues while source-indexing.  The syntax is as follows:</p>
<p><b>vssdump.exe </b><i>Options</i></p>
<p><i>Options</i> can be any combination of the following options.</p>
<p></p>
<dl>
<dt><a id="-a"></a><a id="-A"></a><b>-a</b></dt>
<dd>
<p>Causes all projects to be searched, rather than restricting to the current project.  This option may not be used with the <b>-p</b> option.</p>
</dd>
<dt><a id="-p_ProjectName"></a><a id="-p_projectname"></a><a id="-P_PROJECTNAME"></a><b>-p </b><i>ProjectName</i></dt>
<dd>
<p>Causes <i>VSSDump</i> to restrict its search to the project specified by <i>ProjectName</i>.  If this option is not present, the current project is used.  This option may not be used with the <b>-a</b> option.</p>
</dd>
<dt><a id="-d_RootDirectory"></a><a id="-d_rootdirectory"></a><a id="-D_ROOTDIRECTORY"></a><b>-d </b><i>RootDirectory</i></dt>
<dd>
<p>Causes <i>VSSDump</i> to restrict its search to the root directory specified by <i>RootDirectory</i>.  If this option is not present, the current directory is used.</p>
</dd>
<dt><a id="-l_Label"></a><a id="-l_label"></a><a id="-L_LABEL"></a><b>-l </b><i>Label</i></dt>
<dd>
<p>Causes <i>VSSDump</i> to list only those files with a label that matches that specified by <i>Label</i>.  </p>
</dd>
<dt><a id="VSSDump-v_SharePath"></a><a id="vssdump-v_sharepath"></a><a id="VSSDUMP-V_SHAREPATH"></a><i>VSSDump</i><b>-v </b><i>SharePath</i></dt>
<dd>
<p>Specifies that the location of the Virtual SourceSafe database is in <i>SharePath</i>.  This option overrides the path specified in the SSDIR environment variable.</p>
</dd>
<dt><a id="-r"></a><a id="-R"></a><b>-r</b></dt>
<dd>
<p>Causes <i>VSSDump</i> to search subdirectories recursively.</p>
</dd>
<dt><a id="-f"></a><a id="-F"></a><b>-f</b></dt>
<dd>
<p>Causes <i>VSSDump</i> to list directories containing source files without listing the files themselves.</p>
</dd>
<dt><a id="-i"></a><a id="-I"></a><b>-i</b></dt>
<dd>
<p>Causes <i>VSSDump</i> to ignore the current directory and list the entire project.  This option may not be used with <b>-r</b>. </p>
</dd>
<dt><a id="-s"></a><a id="-S"></a><b>-s</b></dt>
<dd>
<p>Causes <i>VSSDump</i> to format output for use with script files.</p>
</dd>
<dt><a id="-c"></a><a id="-C"></a><b>-c</b></dt>
<dd>
<p>Causes <i>VSSDump</i> to display only the Virtual SourceSafe configuration information.</p></dd></dl></div></div>	
	<div id="winchm_template_footer">Copyright &copy; 2019. All rights 
reserved. (To change the copyright info, just edit it in template.)</div>
</div>

</body>
</html>
